package net.osweb.crm.modules.customer.bean;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * <p>
 * Title:CustomersApplication.java
 * </p>
 * <p>
 * Description:客户服务表（客户请求）
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author <a href="jincool.cao@126.com">jincao</a>
 * @version: 1.0
 * @time:2011年8月5日14:56:24
 */
@Entity
@Table(name = "CUSTOMER_APPLICATION")
public class CustomersApplication implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -7073438421202666515L;
	
	private Integer id;  //	编号
	private Integer customer_id;  //	客户id
	private Integer groupid;  //	群组id
	private String subject;  //	主题
	private Integer status;  //	状态
	private Integer priority;  //	优先级
	private String formemail;  //	邮件来自
	private String fromer;  //	发送者
	private Integer fromtype;  //	发送者类型
	private String assigner;  //	派发者
	private Integer assignuserid;  //	派发者id  (用户ID)
	private Integer isassign;  //	是指派
	private String maildata;  //	邮件日期
	private Integer isavailability;  //	是否有效
	private Integer istoreturnvisit;  //	是否添加到回访
	private Date createtime;  //	创建时间
	
	public String getAssigner() {
		return assigner;
	}
	public void setAssigner(String assigner) {
		this.assigner = assigner;
	}
	public Integer getAssignuserid() {
		return assignuserid;
	}
	public void setAssignuserid(Integer assignuserid) {
		this.assignuserid = assignuserid;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Integer getCustomer_id() {
		return customer_id;
	}
	public void setCustomer_id(Integer customer_id) {
		this.customer_id = customer_id;
	}
	public String getFormemail() {
		return formemail;
	}
	public void setFormemail(String formemail) {
		this.formemail = formemail;
	}
	public String getFromer() {
		return fromer;
	}
	public void setFromer(String fromer) {
		this.fromer = fromer;
	}
	public Integer getFromtype() {
		return fromtype;
	}
	public void setFromtype(Integer fromtype) {
		this.fromtype = fromtype;
	}
	public Integer getGroupid() {
		return groupid;
	}
	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getIsassign() {
		return isassign;
	}
	public void setIsassign(Integer isassign) {
		this.isassign = isassign;
	}
	public Integer getIsavailability() {
		return isavailability;
	}
	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}
	public Integer getIstoreturnvisit() {
		return istoreturnvisit;
	}
	public void setIstoreturnvisit(Integer istoreturnvisit) {
		this.istoreturnvisit = istoreturnvisit;
	}
	public String getMaildata() {
		return maildata;
	}
	public void setMaildata(String maildata) {
		this.maildata = maildata;
	}
	public Integer getPriority() {
		return priority;
	}
	public void setPriority(Integer priority) {
		this.priority = priority;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}

	
	
}
